package com.zhiche.lisa.bms.dao.mapper.driver;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.zhiche.lisa.bms.dao.model.driver.FuelPriceEffective;
import com.zhiche.lisa.bms.pojo.vo.driver.FuelPriceEffectiveVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 燃油价格生效表 Mapper 接口
 * </p>
 *
 * @author zhaoguixin
 * @since 2018-08-30
 */
public interface FuelPriceEffectiveMapper extends BaseMapper<FuelPriceEffective> {

    /**
     * 分页查找燃油价格生效表
     * @param page
     * @param ew
     * @return
     */
    List<FuelPriceEffectiveVO> selectByConditions(Page<FuelPriceEffectiveVO> page,
                                                  @Param("ew") Wrapper<FuelPriceEffectiveVO> ew);

    /**
     * 根据条件得到燃油价格生效表
     * @param ew
     * @return
     */
    FuelPriceEffectiveVO getOneByEW(@Param("ew") Wrapper<FuelPriceEffectiveVO> ew);

}
